package com.hksj.Intelligentmanagement.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel
public class CallDeviceWatchDTO extends BaseDTO {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("设备名称")
    @NotBlank(message = "设备名称不能为空")
    private String name;

    @ApiModelProperty("设备编码")
    @Pattern(regexp = "\\d{6}", message = "设备编码为6位数")
    private String code;

    @ApiModelProperty("是否启用登录 0 = 禁用 1 = 启用")
    //@NotBlank(message = "是否启用登录不能为空")
    private Integer enableLogin;

    @ApiModelProperty("是否启用播报 0 = 禁用 1 = 启用")
    //@NotBlank(message = "是否启用播报不能为空")
    private Integer enableVoice;

    @ApiModelProperty("是否启动震动 0 = 禁用 1 = 启用")
    //@NotBlank(message = "是否启动震动不能为空")
    private Integer enableShook;

    @ApiModelProperty("状态 0 = 禁用 1 = 启用")
    //@NotBlank(message = "状态不能为空")
    private Integer state;

    @ApiModelProperty("备注")
    private String remark;

}
